package core.actions;

import java.awt.Point;

import core.*;
import core.mountedWeapons.GenericMachinegun;
import core.units.Unit;
import core.weapons.*;


public class FireMortar extends Action {
	
	public FireMortar(){
		super();
		name="Mortar";
		imageName="iconMortar.png";
		color = ActionConstants.attackColor;
		nameChar='B';
		needDir=true;
		needPos=true;
		range = 400000;
		energyCost=80;
		value=80;
	}
	
	public void execute(){
		//Player master = PlayerIdHandler.getPlayer(masterId);
		main.attacks.add(new Mortar(master.getHero().getX(), master.getHero().getY(), inputPoint.x, inputPoint.y, master));
		System.out.println("Mortar Fired");
		
		reset();
	}
}
